public partial class AtteKind : Form
    {
        public AtteKind()
        {
            InitializeComponent();
        }

        private void AtteKind_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'stafScheDataSet.AtteKind' table. You can move, or remove it, as needed.
            this.atteKindTableAdapter.Fill(this.stafScheDataSet.AtteKind);

        }

        private void dataGridView1_RowValidated(object sender, DataGridViewCellEventArgs e)
        {
            this.atteKindTableAdapter.Update(this.stafScheDataSet.AtteKind);
        }

        private void AtteKind_Activated(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(uc.User))
            {
                bindingNavigator1.Enabled = false;
                dataGridView1.ReadOnly = true;
            }
            else
            {
                bindingNavigator1.Enabled = true;
                dataGridView1.ReadOnly = false;
            }
        }
    }
